package dto

type AddRoleParams struct {
	RoleCode int    `json:"role_code" binding:"required"` //角色编码
	Ordered  int    `json:"ordered" binding:"required"`   //排序
	Status   int    `json:"status" binding:"oneof=0 1"`   //状态
	Role     string `json:"role" binding:"required"`      //角色名称
}

type ChangeRole struct {
	ID       int    `json:"id" binding:"required"`        //角色id
	RoleCode int    `json:"role_code" binding:"required"` //角色编码
	Ordered  int    `json:"ordered" binding:"required"`   //排序
	Status   int    `json:"status" binding:"oneof=0 1"`   //状态
	Role     string `json:"role" binding:"required"`      //角色名称
}

type DeleteRole struct {
	Ids []int `json:"ids"` //角色id数组
}
